<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<h:panelGrid columns="2" id="nldlgpanel">
		<f:facet name="header">  
          New Language
        </f:facet>
		<h:outputLabel value="New language's name:  " />
		<p:inputText id="langStr" required="true" label="New language: " value="#{languagesBean.name}"/>

		<f:facet name="footer">
			<p:commandButton value="Commit" update="nldlgpanel"
				action="#{languagesBean.saveNewLanguage}" />
			<p:commandButton value="Cancel" action="#{languagesBean.hideDialog}"  immediate="true"/>
		</f:facet>

	</h:panelGrid>
</h:body>
</html>